package com.erp.enums;

/**
 * 接口请求状态
 *
 */
public enum ResponseCode {
    SUCCESS(200, "请求成功"),
    FAIL(201, "请求失败"),
    CONFIRM(203, "请求确认"),
    NO_PERMISSION(401, "未授权"),
    NO_FIND(404, "找不到系统资源");

    private int value;

    private String description;


    ResponseCode(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

}
